<?php
/**
 * Source code of HttpController class
 * @category puntoengine
 * @package core
 * @author Juan Benavides Romero <juan.benavides.romero@gmail.com>
 * @since 0.4.0
 */



/**
 * HttpController is a base controller class.
 * The controller who are the request, have a differents methods
 * to catch the differents types of request and others utilities methods
 * same throw error, load a template or redirect to other page.
 * @category puntoengine
 * @package core
 * @subpackage http
 * @author Juan Benavides Romero <juan.benavides.romero@gmail.com>
 * @since 0.4.0
 */
class HttpController extends Object {
	/**
	 * Response for the web request
	 * @var HttpResponse
	 * @since 0.4.0
	 */
	protected $response;
	
	
	
	/**
	 * Masterpage for the request
	 * @var string
	 * @since 0.4.0
	 */
	protected $master;
	
	
	
	/**
	 * Return the request response
	 * @return HttpResponse Request response
	 * @since 0.4.0
	 */
	public function getResponse() {
		return $this->response;
	}//getResponse
	
	
	
	/**
	 * Set the response
	 * @param HttpResponse $response Request response
	 * @since 0.4.0
	 */
	public function setResponse(HttpResponse $response) {
		$this->response = $response;
	}//setResponse
	
	
	
	/**
	 * Return the master page
	 * @return string Master page
	 * @since 0.4.0
	 */
	public function getMasterPage() {
		return $this->master;
	}//getMasterPage
	
	
	
	/**
	 * Set the master page
	 * @param string Master page
	 * @since 0.4.0
	 */
	public function setMasterPage($masterpage) {
		$this->master = $masterpage;
	}//setMasterPage
}//HttpController
?>